/**
 * Copyright © 1998-2020, Glodon Inc. All Rights Reserved.
 */
package reactor2;

import java.util.concurrent.Executor;

/**
 * 此处填写类简介
 * <p>
 * 此处填写类说明
 * </p>
 * 
 * @author dujl
 * @since jdk1.6 2020年8月3日
 */
/***
 */
public class LogEventHandler implements IEventHandler {
	private Event event = null;

	/** 
	 */
	@Override
	public void handler(Event event, Executor executor) {
		this.event = event;
		executor.execute(this);
	}

	@Override
	public void run() {
		// TODO Auto-generated method stub
		if (event == null)
			throw new NullPointerException();
		System.out.println("event type >>>>>>>>> " + event.getEventType());
	}
}
